﻿using System;
using Assist;

namespace YJKCoordinate
{
	public static class LimitValueFactory
	{
		public static double GetLengthLimitValue(int kindIndex)
		{
			if (kindIndex == 2 || kindIndex == 4 || kindIndex == 5)
			{
				return AssistFunc.mmToFeet(800.0);
			}
			if (kindIndex == 3)
			{
				return AssistFunc.mmToFeet(1040.0);
			}
			if (kindIndex == 0)
			{
				return AssistFunc.mmToFeet(1160.0);
			}
			return AssistFunc.mmToFeet(1040.0);
		}

		public static double GetWidthLimitValue(int kindIndex)
		{
			if (kindIndex == 2 || kindIndex == 4 || kindIndex == 5)
			{
				return 40.0;
			}
			if (kindIndex == 3)
			{
				return 150.0;
			}
			if (kindIndex == 0)
			{
				return 140.0;
			}
			return 40.0;
		}

		public static double GetThicknessLimitValue(int kindIndex)
		{
			return 40.0;
		}
	}
}
